//https://www.luogu.com.cn/problem/P1059
using System;
using System.Collections.Generic;
class program
{
    void Main()
    {
		int n=Console.Read();
		List<int> nums=new List<int>(n);
		for(int i=0;i<n;++i){
			nums[i]=Console.Read();
		}
		int count=count_array(nums);
		nums.Sort();
		int unique=nums[0];
		for(int i=1;i<nums.Count;){
			if(nums[i]==unique){
				nums.RemoveAt(i);
			}
			else{
				unique=i;
				++i;
			}
		}
		foreach( int i in nums){
			Console.Write("{0} ",i);
		}
    }
	int count_array(List<int> arr){
		int count=0;
		HashSet<int> hs=new HashSet<int>();
		foreach(int i in arr){
			hs.Add(i);
		}
		return hs.Count;
	}
}
